package com.ccp.dev.im.model;

import com.ccp.dev.core.basic.model.BaseModel;

import java.util.Date;

/**
 * 好友消息表 im_friend_message
 */
public class ImFriendMessage extends  BaseModel<ImFriendMessage>
{
	private static final long serialVersionUID = 1L;

    /**
     * id
    */
    private String  id;
    /**
     * 发起人ID
    */
    private String  fromId;
    /**
     * 推送ID
    */
    private String  toId;
    /**
     * 内容
    */
    private String  content;
    /**
     * 发送时间
    */
    private Date  sendTime;
    /**
     * 是否已读:1已读 0未读
    */
    private Integer  isRead;
    /**
     * 是否删除:1是 0否
    */
    private Integer  isDel;
    /**
     * 是否撤销:1是 0否
    */
    private Integer  isBack;
    /**
     * 消息类型（0文本|1图片|2文件|3音频|4视频）
    */
    private Integer  msgType;
    /**
     * 昵称
     */
    private String  username;
    /**
     * 头像
     */
    private String  avatar;
    /**
     * 文件名称
     */
    private String  fileName;
    public String getId() {
        return this.id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getFromId() {
        return this.fromId;
    }
    public void setFromId(String fromId) {
        this.fromId = fromId;
    }
    public String getToId() {
        return this.toId;
    }
    public void setToId(String toId) {
        this.toId = toId;
    }
    public String getContent() {
        return this.content;
    }
    public void setContent(String content) {
        this.content = content;
    }
    public Date getSendTime() {
        return this.sendTime;
    }
    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }
    public Integer getIsRead() {
        return this.isRead;
    }
    public void setIsRead(Integer isRead) {
        this.isRead = isRead;
    }
    public Integer getIsDel() {
        return this.isDel;
    }
    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }
    public Integer getIsBack() {
        return this.isBack;
    }
    public void setIsBack(Integer isBack) {
        this.isBack = isBack;
    }
    public Integer getMsgType() {
        return this.msgType;
    }
    public void setMsgType(Integer msgType) {
        this.msgType = msgType;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    @Override
    public String toString() {
        return "ImFriendMessage{" +
                "id='" + id + "," +
                "fromId='" + fromId + "," +
                "toId='" + toId + "," +
                "content='" + content + "," +
                "sendTime='" + sendTime + "," +
                "isRead='" + isRead + "," +
                "isDel='" + isDel + "," +
                "isBack='" + isBack + "," +
                "msgType='" + msgType + "," +
                "fileName='" + fileName +
                '}';
}

}
